﻿using System;

namespace Communicate
{
    /// <summary>
    /// 标记为WebService引用类
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
    public class RegisterTypeAttribute : Attribute
    {
        /// <summary>
        /// 标记为WebService引用类
        /// </summary>
        /// <param name="interfaceType">接口类型。</param>
        public RegisterTypeAttribute(Type interfaceType)
        {
            InterfaceType = interfaceType;
        }
        /// <summary>
        /// 接口类型。
        /// </summary>
        public Type InterfaceType { get; set; }
    }
}
